import { createApp } from 'vue'
import './style.css'
import App from '@/App.vue'
// vuex和router引入
import router from './router'
import store from '@/store'
// elemelt-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// elemelt-plus图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//全局导入vuex
import store from '@/store'


const app=createApp(App)
//注册路由
app.use(router)

//
app.use(store)
//注册elementPlus
app.use(ElementPlus)

//注册vuex
app.use(store)


app.mount('#app')




// elemelt-plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}